﻿namespace housingsafety.server.Models
{
    /// <summary>
    /// 文件索引
    /// </summary>
    public class FileIndex
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public FileIndex()
        {

        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="fileId"></param>
        /// <param name="fileName"></param>
        /// <param name="length">文件大小</param>
        public FileIndex(string fileId, string fileName, long length)
        {
            FileId = fileId;
            FileName = fileName;
            Length = length;
        }

        /// <summary>
        /// 文件存储相对路径
        /// </summary>
        public string RelativelyStorePath { get; set; }

        /// <summary>
        /// 文件存储路径
        /// </summary>
        public string StorePath { get; set; }

        /// <summary>
        /// 文件Id
        /// </summary>
        public string FileId { get; set; }

        /// <summary>
        /// 文件名称
        /// </summary>
        public string FileName { get; set; }

        /// <summary>
        /// 文件大小
        /// </summary>
        public long Length { get; set; }
    }
}